package org.meb.conquest.web.ui;

import org.meb.conquest.db.model.Faction;
import org.meb.conquest.db.model.loc.Card;
import org.meb.conquest.db.util.Utils;
import org.meb.conquest.web.ctrl.CommonCtrl;

public final class Function {

	private Function() {
		
	}
	
	public static String cardImageBase(Card card) {
		return Utils.imageBase(card, true);
	}
	
	public static String cardImagePathBase(Card card) {
		return CommonCtrl.CARD_IMAGE_PATH + Utils.imageBase(card, true);
	}
	
	public static String factionImageBase(Faction faction) {
		return Utils.imageBase(faction);
	}
	
	public static String factionImagePathBase(Faction faction) {
		return CommonCtrl.FACTION_IMAGE_PATH + Utils.imageBase(faction);
	}
}
